package io.plus.server;


public enum Status {
    //
    login_succeed(00001, "auth succeed", "登录成功!"),//
    login_failed(00002, "auth failed !", "登录失败!"), //
    heartbeat_succeed(00003, "heartbeat succeed!", "心跳成功!"), //
    heartbeat_failed(00004, "heartbeat failed!", "心跳失败!"),//
    //
    ok(00000, "ok", "发送成功"),//
    //
    C10001(10001, "offline", "用户不在线"),//
    C10019(10019, "online", "用户在线"),
    C10002(10002, "send failed",
            "消息发送失败,数据格式不正确,请参考:{'from':来源ID,'to':目标ID,'cmd':'消息命令码','createTime':消息创建时间(Long型),'msgType':Integer消息类型,'content':内容}"),
    C10003(10003, "ok", "获取用户信息成功!"),//
    C10004(10004, "get user failed !", "获取用户信息失败!"),//
    C10005(10005, "ok", "获取所有在线用户信息成功!"),//
    C10006(10006, "ok", "获取所有离线用户信息成功!"), //

    C10011(10011, "join group ok!", "加入群组成功!"), //
    C10012(10012, "join group failed!", "加入群组失败!"),//
    C10013(10013, "Protocol version number does not match", "协议版本号不匹配!"),//
    C10014(10014, "unsupported cmd command", "不支持的cmd命令!"), //
    C10015(10015, "get user store failed!", "获取用户消息失败!"),//
    C10016(10016, "get user store ok!", "获取离线消息成功!"), //
    C10017(10017, "cmd failed!", "未知的cmd命令!"),//
    C10018(10018, "get user store ok!", "获取历史消息成功!"), //
    C10020(10020, "Invalid verification!", "不合法校验"),//
    C10021(10021, "unbind ok!", "关闭成功");//

    private int code;

    private String description;

    private String mark;

    Status(int code, String description, String mark) {
        this.code = code;
        this.description = description;
        this.mark = mark;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }
}
